﻿using System;
namespace Redis
{
    public static class Logger
    {
        private static readonly ILogService LogService = new Log4NetService();

        public static void Error(Exception ex)
        {
            LogService.Error(ex);
        }

        public static void Information(string message)
        {
            LogService.Information(message);
        }

        public static void Information(string messageFormat, params object[] items)
        {
            string message = string.Format(messageFormat, items);
            LogService.Information(message);
        }

        public static void Debug(string message)
        {
            LogService.Debug(message);
        }

        public static void Debug(string messageFormat, params object[] items)
        {
            string message = string.Format(messageFormat, items);
            LogService.Debug(message);
        }
    }
}


